class AddCutData < ActiveRecord::Migration
  def self.up
    Cut.delete_all
    Cut.create(:part => "リアクォータ", :car_size => "軽自動車", :cut_index => 4, :metal_putty_index => 2)
    Cut.create(:part => "リアクォータ", :car_size => "普通車", :cut_index => 6, :metal_putty_index => 3)
    Cut.create(:part => "リアクォータ", :car_size => "大型車", :cut_index => 9, :metal_putty_index => 4.5)
    
    Cut.create(:part => "バックパネル", :car_size => "軽自動車", :cut_index => 3.8, :metal_putty_index => 1.9)
    Cut.create(:part => "バックパネル", :car_size => "普通車", :cut_index => 4.4, :metal_putty_index => 2.2)
    Cut.create(:part => "バックパネル", :car_size => "大型車", :cut_index => 5.2, :metal_putty_index => 2.6)
    
    Cut.create(:part => "ロッカーパネル", :car_size => "軽自動車", :cut_index => 3.5, :metal_putty_index => 1.75)
    Cut.create(:part => "ロッカーパネル", :car_size => "普通車", :cut_index => 5.4, :metal_putty_index => 2.7)
    Cut.create(:part => "ロッカーパネル", :car_size => "大型車", :cut_index => 6.7, :metal_putty_index => 3.35)
    
    Cut.create(:part => "フロントパネル", :car_size => "軽自動車", :cut_index => 4, :metal_putty_index => 2)
    Cut.create(:part => "フロントパネル", :car_size => "普通車", :cut_index => 4, :metal_putty_index => 2)
    Cut.create(:part => "フロントパネル", :car_size => "大型車", :cut_index => 4, :metal_putty_index => 2)
    
    Cut.create(:part => "ルーフ", :car_size => "軽自動車", :cut_index => 5.5, :metal_putty_index => 2.75)
    Cut.create(:part => "ルーフ", :car_size => "普通車", :cut_index => 5.5, :metal_putty_index => 2.75)
    Cut.create(:part => "ルーフ", :car_size => "大型車", :cut_index => 5.5, :metal_putty_index => 2.75)
    
    Cut.create(:part => "フロアパン", :car_size => "軽自動車", :cut_index => 4.7, :metal_putty_index => 2.35)
    Cut.create(:part => "フロアパン", :car_size => "普通車", :cut_index => 4.7, :metal_putty_index => 2.35)
    Cut.create(:part => "フロアパン", :car_size => "大型車", :cut_index => 4.7, :metal_putty_index => 2.35)
  end

  def self.down
    Cut.delete_all
  end
end
